package com.tedu.controller;


import com.tedu.pojo.Dept;
import com.tedu.service.DeptServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DeptController {
    @Autowired
    private DeptServices deptServices;

    @RequestMapping("findAll")
    public List<Dept> findAll() {


        List<Dept> deptList = deptServices.findAll();
        return deptList;
    }

}
